﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLog;

namespace GrupyzServices.Logging
{
    public class NLogLogger : ILogger
    {
        private Logger _Logger;

        public NLogLogger()
        {
            _Logger = LogManager.GetCurrentClassLogger();
        }

        public void Info(string Message)
        {
            _Logger.Info(Message);
        }

        public void Warn(string Message)
        {
            _Logger.Warn(Message);
        }

        public void Debug(string Message)
        {
            _Logger.Debug(Message);
        }

        public void Error(string Message)
        {
            _Logger.Error(Message);
        }

        public void Error(Exception ex)
        {
            _Logger.Error(ex);
        }

        public void Fatal(string Message)
        {
            _Logger.Fatal(Message);
        }
    }
}
